WeDevs\Wpuf\Lib\Gateway\Paypal D

Total Complexity 302
Dependencies 3
Dependents 3
Total lines 2,150
Lines of code 1,582
Logical lines of code 684
Comment lines 279
Methods 35
Properties 7

Methods 35

Method Rating Maintainability Complexity Lines of code
prepare_to_send()
D
19
40 241
process_subscription_payment()
C
30 29 113
handle_subscription_created()
C
34 26 80
handle_paypal_return()
B
36 21 74
cancel_subscription()
B
32 17 110
handle_subscription_activated()
B
37 15 69
process_webhook()
B
40 15 65
get_or_create_plan()
A
34 11 101
check_paypal_return()
A
50 15 24
process_payment_capture()
A
38 12 65
verify_webhook_signature_from_input()
A
40 10 59
handle_subscription_return()
A
47 11 34
handle_webhook_request()
A
47 11 32
paypal_settings_update_notice()
A
41 4 89
get_or_create_product()
A
46 7 37
handle_pending_payment()
S
56 7 16
handle_subscription_cancelled()
S
46 5 40
payment_options()
S
38 1 87
get_payer_info()
S
56 5 18
get_error_page_url()
S
59 5 14
get_pack_id_by_subscription()
S
57 4 18
register_webhook_endpoint()
S
54 3 23
get_access_token()
S
54 3 21
inject_webhook_css()
S
60 3 17
dismiss_paypal_notice()
S
63 4 10
create_trial_payment_record()
S
52 2 24
get_user_id_by_subscription()
S
56 2 22
update_coupon_usage()
S
65 3 9
handle_payment_features()
S
65 3 8
__construct()
S
54 1 20
subscription_cancel()
S
64 2 9
get_pages_dropdown()
S
66 2 8
get_webhook_events_notice()
S
62 1 13
get_paypal_allowed_hosts()
S
69 1 8
clean_up_transients()
S
75 1 4